On Wed, Nov 29 2023, Peter Münster wrote:
> According to https://wiki.contextgarden.net/Command/date:
> "The name suffixes indicate number conversions. Any conversion, either
> built-in or defined by \defineconversion, can be used there."
>
> But it does not seem to w
potential number
conversions.
And I just realize, for Chinese date, only year section follows the as-is
pattern, for month or day, December should be represented as 十二月 instead of
一二, twenty-sixth is 二十六日 instead of 二六, we might need to consider to narrow
down the name to be year could be mo
On Wed, Nov 29 2023, Hans Hagen wrote:
> \setuplanguage[fr][date={day:++,\ ,month,\ ,year}]
Unfortunately this does not work as I need. Only the "1" should be
converted to 1er, not the other numbers.
French is a bit special:
You say "le premier novembre" but not "
On 11/29/2023 7:56 AM, Yihan Song wrote:
Dears,
I am opening a PR <https://github.com/contextgarden/context/pull/1> to
improve the Chinese date conversion but it seems that repo is just a
mirror site without development activities, can someone help to review
this one?
sending patched
On 11/28/2023 6:09 PM, Peter Münster wrote:
Hi,
When printing a date in French, I would like to convert the "1" to
"1\ier", but it does not work as I expect:
--8<---cut here---start->8---
\startluacode
-- from https://wiki
Dears,
I am opening a PR <https://github.com/contextgarden/context/pull/1> to
improve the Chinese date conversion but it seems that repo is just a mirror
site without development activities, can someone help to review this one?
Thanks in advance.
Cheers,
Hi,
When printing a date in French, I would like to convert the "1" to
"1\ier", but it does not work as I expect:
--8<---cut here---start->8---
\startluacode
-- from https://wiki.contextgarden.net/Command/defineconversion:
inter
Am 21.12.22 um 10:33 schrieb Pablo Rodriguez via ntg-context:
On 12/19/22 20:59, Henning Hraban Ramm via ntg-context wrote:
Not much more to say, it’s still only announced somewhat inofficially...
Many thanks for the announcement, Hraban.
I’ve just found https://tug.org/tug2023/.
Thank
On 12/19/22 20:59, Henning Hraban Ramm via ntg-context wrote:
> Not much more to say, it’s still only announced somewhat inofficially...
Many thanks for the announcement, Hraban.
I’ve just found https://tug.org/tug2023/.
Just in case it might help,
Pablo
Not much more to say, it’s still only announced somewhat inofficially...
Hoping to meet you there,
Hraban
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist :
/21 4:45 PM, Rik Kabel via ntg-context wrote:
>> Hello all,
>>
>> The example below continues to work with MkIV, but now fails
with the
>> most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
>>
>> \define\DraftOf {Draft o
On 10/25/2021 10:31 PM, Rik Kabel wrote:
This has been part of my setup interaction for a couple of years.
Documents all pass verapdf pdf3a testing.
the date only ended up in some places but now we try to be consistent on
all places
On Oct 25, 2021 15:54, Hans Hagen via ntg-context
wrote
Hello all,
>>
>> The example below continues to work with MkIV, but now fails with the
>> most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
>>
>> \define\DraftOf {Draft of \date}
>> \setupinteraction [date={\DraftOf}]
>
> Hi Rik,
>
>
On 10/25/2021 7:54 PM, Pablo Rodriguez via ntg-context wrote:
On 10/25/21 4:45 PM, Rik Kabel via ntg-context wrote:
Hello all,
The example below continues to work with MkIV, but now fails with the
most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
\define\DraftOf {Draft of \date
On 10/25/21 4:45 PM, Rik Kabel via ntg-context wrote:
> Hello all,
>
> The example below continues to work with MkIV, but now fails with the
> most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
>
> \define\DraftOf {Draft of \date}
> \setupinteraction [dat
Rik Kabel via ntg-context schrieb am 25.10.2021 um 16:45:
Hello all,
The example below continues to work with MkIV, but now fails with the
most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
\define\DraftOf {Draft of \date}
\setupinteraction [date={\DraftOf}]
\starttext
Hello all,
The example below continues to work with MkIV, but now fails with the
most recent (ConTeXt ver: 2021.10.24 21:45) LMTX:
\define\DraftOf {Draft of \date}
\setupinteraction [date={\DraftOf}]
\starttext
Fail with LMTX, works with MkIV.
\stoptext
If the answer
nt timezone
>> though.
>>
>> Requires the below patch.
>[...]
> i'll fix it but also clean up the existing code a bit
>
> (much has to do with omitting date and is for comparison reasons)
Many thanks for the fix. It would be great that current timezone doesn’t
overwri
ch.
Michal
--- a/tex/context/base/mkiv/core-con.lua
+++ b/tex/context/base/mkiv/core-con.lua
@@ -1991,7 +1991,7 @@ function converters.totime(s)
end
local n = tonumber(s)
if n and n >= 0 then
-return date("*t",n)
+return osdate("*t",n)
> \setupinteraction[state=start,
> > date={2022-02-02T12:00:21+02:00}]
> > \starttext
> > This document is from 02.02.2020 at 12:00:21.
> > \stoptext
> >
> > This parameter sets the "ModDate" is that what you are after?
>
> Hi M
On 10/19/21 6:23 PM, Michal Vlasák via ntg-context wrote:
> On Tue Oct 19, 2021 at 5:47 PM CEST, Pablo Rodriguez via ntg-context wrote:
> [...]
> So this works:
>
>
> \setupinteraction[state=start,
> date={2022-02-02T12:00:21+02:00}]
> \starttext
>
On Tue Oct 19, 2021 at 5:47 PM CEST, Pablo Rodriguez via ntg-context wrote:
> Dear list,
>
> I have the following sample:
>
> \setupinteraction[state=start,
> date={02.02.2022}]
> \starttext
> This document is from 02.02.2020 at 12:00:21.
> \stoptext
>
> Which
Dear list,
I have the following sample:
\setupinteraction[state=start,
date={02.02.2022}]
\starttext
This document is from 02.02.2020 at 12:00:21.
\stoptext
Which is the right way to get PDF dates working with \setupinteraction?
Many thanks for your help,
Pablo
--
http
From Wikipedia:
In English-language
outside North America (mostly in Anglophone Europe and some countries in
Australasia), full dates are written as 7 December 1941 (or 7th December 1941)
and spoken as "the seventh of December, nineteen forty-one" (exceedingly common
usage of "the" and
that mean? Is that going to be changed?
How should \date[] be used now in the text?
For now, I do it like "bla \date[d=3]\ bla".
Is there a nicer way?
TIA for any hints,
The problem with an interface with optional arguments is that it has to
look ahead. There are actually some macro
nged?
How should \date[] be used now in the text?
For now, I do it like "bla \date[d=3]\ bla".
Is there a nicer way?
TIA for any hints,
--
Peter
___
If your question is of interest to others as well,
Hans Hagen schrieb am 27.01.2021 um 22:31:
On 1/27/2021 6:28 PM, Peter Münster wrote:
On Sun, Jan 10 2021, Peter Münster wrote:
\currentdate% same as \date, but I would expect the day of today...
Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date
On 1/27/2021 6:28 PM, Peter Münster wrote:
On Sun, Jan 10 2021, Peter Münster wrote:
\currentdate% same as \date, but I would expect the day of today...
Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?
Reporting here is faster. Can (lazy me
On Sun, Jan 10 2021, Peter Münster wrote:
> \currentdate% same as \date, but I would expect the day of today...
Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?
TIA,
--
Pe
ConTeXt ver: 2021.01.11 17:27 LMTX fmt: 2021.1.11
The following works in MkIV, but not in LMTX:
\def\Jahr{\currentdate[year]}
\settaggedmetadata[
rights={© \Jahr{} Me}
]
\starttext
\strut
\stoptext
The error message is:
1 \def\Jahr{\currentdate[year]}
2
3
On Sun, Jan 10 2021, Fabrice L wrote:
> For exemple:
>
> \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m]
Sorry, I should have mentioned, that I use the latest version:
context-2021.01.08
--
> Le 10 janv. 2021 à 13:23, Peter Münster a écrit :
>
> Hi,
>
> I would expect, that \currentdate prints the current date, but it does
> not:
>
> --8<---cut here---start->8---
> \starttext
> \date[d=1]% first day of th
Hi,
I would expect, that \currentdate prints the current date, but it does
not:
--8<---cut here---start->8---
\starttext
\date[d=1]% first day of this month, ok
\date% again first day, last parameters are used, this is ok
\currentdate% same as \date,
Hi,
There is no more space after \date[] with the latest version.
Is this wanted, or a bug?
Example:
\starttext
\date[d=1] X % no space before "X"
\stoptext
Kind regards,
--
Peter
___
If you
Hi
It's been a long time, since a solution for the 'module wrapping error' in
tikz has been proposed here in the list:
https://mailman.ntg.nl/pipermail/ntg-context/2017/090404.html
Since July a fix has been published:
Thank you Wolfgang!
Adam
On Wed, Apr 8, 2020 at 9:11 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:
> Adam Reviczky schrieb am 08.04.2020 um 21:53:
> > Thank you Hans and Wolfgang,
> >
> > I have updated the wiki (https://wiki.contextgarden.net/Com
Adam Reviczky schrieb am 08.04.2020 um 21:53:
Thank you Hans and Wolfgang,
I have updated the wiki (https://wiki.contextgarden.net/Command/date)
with the new dayshort/daylong options, but I seem to get an empty value
for every day after day 7, see example:
\starttext
\date[d=7,m=4,y=2008
Thank you Hans and Wolfgang,
I have updated the wiki (https://wiki.contextgarden.net/Command/date) with
the new dayshort/daylong options, but I seem to get an empty value for
every day after day 7, see example:
\starttext
\date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par
On 4/4/2020 11:47 AM, Adam Reviczky wrote:
Hi,
Is there a way to achieve a short weekday option with \date[] to get 3
letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the
monthshort either through context or lua?
Not currently but I will add the basics (I have to double check
Hi,
Is there a way to achieve a short weekday option with \date[] to get 3
letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the
monthshort either through context or lua?
Thanks,
Adam
___
If your
On 3/11/2020 4:54 PM, Axel Kielhorn wrote:
Hello Hans and mailing list!
Thank you so much.
With this example and the help I received earlier from Massi,
I’ve been able to write my first finalizer today.
It is amazing how powerful luatex is.
indeed (and luametatex is supposed to be even bit
Hello Hans and mailing list!
Thank you so much.
With this example and the help I received earlier from Massi,
I’ve been able to write my first finalizer today.
It is amazing how powerful luatex is.
My project needs some cleanup and documentation but I hope to put it on GitHub
soon.
After
> Am 11.03.2020 um 15:19 schrieb Hans Hagen :
>
> On 3/11/2020 3:12 PM, Axel Kielhorn wrote:
>>> Am 11.03.2020 um 15:01 schrieb Hans Hagen :
>>>
>>> On 3/11/2020 2:14 PM, Axel Kielhorn wrote:
Had to change it to:
\startluacode
function
://www.pragma-ade.com/general/manuals/xml-mkiv.pdf as a
guide.
Currently stuck on converting an ISO format date (eg. 1908-01-10) into
something more readable (eg. 10 January 1908) in the output. I presume I
should create a function (?luacode) that can take any ISO value and output the
readable form
http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf as a
>> guide.
>> Currently stuck on converting an ISO format date (eg. 1908-01-10) into
>> something more readable (eg. 10 January 1908) in the output. I presume I
>> should create a function (?luacode) tha
Is there not a simple place to get all the up-to-date documentation?
If you install ConTeXt from
http://www.pragma-ade.nl/install.htm
in the installation tree you'll find docs under
tex/texmf-context/doc/context/documents/
There you'll always find the docs at their last revision.
Massi
On Sat, 29 Feb 2020 12:10:13 +0100
Gerben Wierda wrote:
> Hello community,
>
> I have been (unsuccessfully) hunting for up-to-date tutorials/documentation
> on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in
> 2011. documentation that is from 2013, o
Hello community,
I have been (unsuccessfully) hunting for up-to-date tutorials/documentation on
ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in 2011.
documentation that is from 2013, or on Pragme-ADE a show-man.pdf PDF with an
overview of documentation that doesn’t open
Hi,
> Is there not a simple place to get all the up-to-date documentation?
maybe not what you are looking for, but I think the list at
https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-context-mkiv-documentation
is very help
On Wed, 2019-09-11 at 08:42 +0200, Hans Hagen wrote:
> On 9/11/2019 4:15 AM, Martin Althoff wrote:
> > Hi all,
> >
> > the \date is output wrong. Whatever value is given for d= I get the 11th.
> > That is todays
> > date. Not sure what would happen tom
On 9/11/2019 4:15 AM, Martin Althoff wrote:
Hi all,
the \date is output wrong. Whatever value is given for d= I get the 11th. That
is todays
date. Not sure what would happen tomorrow
Thanks for any fix suggestions.
\starttext
\date[d=16,m=9,y=2019][weekday, day,{. }, month, year]
\stoptext
Hi all,
the \date is output wrong. Whatever value is given for d= I get the 11th. That
is todays
date. Not sure what would happen tomorrow
Thanks for any fix suggestions.
\starttext
\date[d=16,m=9,y=2019][weekday, day,{. }, month, year]
\stoptext
eur wrote:
> Hello,
> The date display is incorrect : I get day 28 instead of day 2.
> Thank you
> Fabrice
>
> \defineframed
> [headerframed]
> [frame=off,
> height=fit,
> width=fit]
&
Hi,
On my installation of lmtx (version 2019.08.20 17:34), as well as mkiv (version
2019.08.24 22:42 MKIV) the following gives:
\starttext
\date[d=25,m=10,y=1999]
\stoptext
October 09, 1999. So the month and the year are correct, but not the day.
Best regards: OK
> On 9 Sep 2019, at
On 9/9/19 3:24 PM, Fabrice Couvreur wrote:
> Hello,
> I just updated my version of ConTeXt and the bug is still present.
> Can you confirm ?
Hi Fabrice,
I confirm that latest beta (from 2019.09.09 13:44), doesn’t change the
date in the following sample:
\starttext
\
Hello,
I just updated my version of ConTeXt and the bug is still present.
Can you confirm ?
Thank you.
Fabrice
Le mer. 28 août 2019 à 16:34, Aditya Mahajan a écrit :
> On Wed, 28 Aug 2019, Fabrice Couvreur wrote:
>
> > Hello,
> > The date display is incorrect : I get day 2
On Wed, 28 Aug 2019, Fabrice Couvreur wrote:
Hello,
The date display is incorrect : I get day 28 instead of day 2.
Thank you
Fabrice
\defineframed
[headerframed]
[frame=off,
height=fit,
width=fit]
\definecolor[ColorA][0.8(white)]
\startsetups [headertext
Hello,
The date display is incorrect : I get day 28 instead of day 2.
Thank you
Fabrice
\defineframed
[headerframed]
[frame=off,
height=fit,
width=fit]
\definecolor[ColorA][0.8(white)]
\startsetups [headertext]
\setupheadertexts
[{\startframed [headerframed
On 8/18/2019 9:59 AM, Otared Kavian wrote:
On 18 Aug 2019, at 05:25, Aditya Mahajan wrote:
Hi,
There is a bug with \date in LMTX.
\starttext
\date[d=10]
\stoptext
does not change the date. Works okay in MKIV.
Hi,
Actually it does not work in mkiv version 2019.08.14 11:26, nor in lmtx
> On 18 Aug 2019, at 05:25, Aditya Mahajan wrote:
>
> Hi,
>
> There is a bug with \date in LMTX.
>
> \starttext
> \date[d=10]
> \stoptext
>
> does not change the date. Works okay in MKIV.
Hi,
Actually it does not work in mkiv version 2019.08.14 11:26, nor
Hi,
There is a bug with \date in LMTX.
\starttext
\date[d=10]
\stoptext
does not change the date. Works okay in MKIV.
Thanks,
Aditya
___
If your question is of interest to others as well, please add an entry
Great, that worked. Thanks for the quick solution.
Changed the line, then ran:
luatools --generate
luatools --ini --compile cont-en
On 09.02.19 20:59, Hans Hagen wrote:
On 2/9/2019 2:39 PM, martin wrote:
I'm getting a bit confused. The \date function doesn't result in a
formatted date
On 2/9/2019 2:39 PM, martin wrote:
I'm getting a bit confused. The \date function doesn't result in a
formatted date. That goes for some files that are a few weeks old.
What am I missing?
\starttext
\date[d=2,m=3,y= 2018]
\stoptext
results in:
d=2m=3y= 2018
An optional formatting
I'm getting a bit confused. The \date function doesn't result in a
formatted date. That goes for some files that are a few weeks old.
What am I missing?
\starttext
\date[d=2,m=3,y= 2018]
\stoptext
results in:
d=2m=3y= 2018
An optional formatting parameter has no effect
\date[d=1, m=4, y
on converting an ISO format date (eg. 1908-01-10) into
something more readable (eg. 10 January 1908) in the output. I presume
I should create a function (?luacode) that can take any ISO value and
output the readable form. The following works but seems to me inefficient.
Grateful for any pointers.
Mike
stuck on converting an ISO format date (eg. 1908-01-10) into
something more readable (eg. 10 January 1908) in the output. I presume I
should create a function (?luacode) that can take any ISO value and output the
readable form. The following works but seems to me inefficient.
Grateful f
On 14.08.2018 16:58, Pablo Rodriguez wrote:
> I rewrote your sample as (xtables are the only tables I know in ConTeXt):
>
> \starttext
> \startlua
> context.startxtable()
> context.startxrow()
> context.startxcell()
> context("Note 1")
>
On 08/14/2018 09:24 AM, Henri Menke wrote:
> On 14/08/18 17:29, Pablo Rodriguez wrote:
>> [...]
>> Where are those context.* Lua commands documented?
>>
>> I want to generate an xtable using Lua code, but I don’t know where to read.
>
> They aren't documented because they are just the context
context.startxtable{frame = "off"}
context.NC() context("Note") context.NC() context("Date") context.NR()
context.NC() context("Hand in before") context.NC() duedate()
context.NR()
context.stopxtable()
\stopluacode
\stopt
On 08/14/2018 01:46 AM, Henri Menke wrote:
> On top of that I recommend to use context.date to get the correct
> formatting according to the current language options:
>
> \def\duedate{\ctxlua{
>local t = os.date('*t', os.time()+ 10 * 24 * 3600)
>context.date{ d = t.day, m = t.month, y =
On top of that I recommend to use context.date to get the correct
formatting according to the current language options:
\starttext
\def\duedate{\ctxlua{
local t = os.date('*t', os.time()+ 10 * 24 * 3600)
context.date{ d = t.day, m = t.month, y = t.year }
}}
\duedate
\stoptext
On
On 13.08.2018 17:57, Pablo Rodriguez wrote:
> if you don’t mind using Lua, here you have it:
>
> \starttext
> \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent
> m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}}
>
> \duedate
> \stoptext
>
> Just in case
On 08/13/2018 05:19 PM, Jan U. Hasecke wrote:
> Hi all,
>
> I want to insert a due date for payments in my invoice and I would like
> to calculate it from \currentdate. Something like
>
> define \duedate = \currentdate plus 10 days
>
> Is this possible?
Hi Jan-Ulrich,
Hi all,
I want to insert a due date for payments in my invoice and I would like
to calculate it from \currentdate. Something like
define \duedate = \currentdate plus 10 days
Is this possible?
juh
___
If your
On 06/24/2018 09:54 PM, Hans Hagen wrote:
> On 6/23/2018 6:07 PM, Pablo Rodriguez wrote:
>> [...]
>> Is there a command (similar to \nopdfcompression) that has the same
>> effect than compiling the document with "context --nodates"?
> no, and there won't be either because this is a feature creep
On 6/23/2018 6:07 PM, Pablo Rodriguez wrote:
Dear list,
I would like to avoid adding date info in certain PDF documents to be
able to regenerate them having the same SHA512s.
Is there a command (similar to \nopdfcompression) that has the same
effect than compiling the document with "co
Dear list,
I would like to avoid adding date info in certain PDF documents to be
able to regenerate them having the same SHA512s.
Is there a command (similar to \nopdfcompression) that has the same
effect than compiling the document with "context --nodates"?
Many thanks for your he
On 06/19/2016 11:51 PM, Hans Hagen wrote:
> [...]
> another possibility is
>
> \enabledirectives[references.bookmarks.preroll]
Many thanks for this extremely useful directive, Hans.
I have two improvement suggestions for it, shown in the following sample:
\def\BookTitle{{\em A \ConTeXt\
On 6/19/2016 10:17 PM, Mojca Miklavec wrote:
Hi,
I'm trying to generate daily reports and wanted to include the date in
bookmarks, but there is some weird (non)expansion going on.
I might just as well switch to lua for certain parts of the document
(like cycling through dates), but I suspect
On 06/19/2016 08:17 PM, Mojca Miklavec wrote:
Hi,
I'm trying to generate daily reports and wanted to include the date in
bookmarks, but there is some weird (non)expansion going on.
I'm not quite sure what you're trying to do, but are you maybe missing a
simple
\setuphead[section
On 19 June 2016 at 22:17, Mojca Miklavec wrote:
> Hi,
>
> I'm trying to generate daily reports and wanted to include the date in
> bookmarks, but there is some weird (non)expansion going on.
>
> I might just as well switch to lua for certain parts of the document
> (like
Hi,
I'm trying to generate daily reports and wanted to include the date in
bookmarks, but there is some weird (non)expansion going on.
I might just as well switch to lua for certain parts of the document
(like cycling through dates), but I suspect that there must be some
trivial hack to prevent
Hi,
for a document I'm currently writing I need to cite some online
resources including their last accessed date. Adding
\insertbiburl[..] to a citation style does work fine to get the urls
printed.
However, the *.bst styles only check for 'lastchecked' tag for a last
accessed date. I don't
The new mkiv bibliography module does not use *.bst files at all.
We can handle access date but there needs to be some sort of
specification. I believe that the APA style only specifies "Retrieved
from". I can work something in to use the fields "lastchecked" and/or
"url
On 9/11/2015 10:29 AM, Jens Bertram wrote:
Hi,
for a document I'm currently writing I need to cite some online
resources including their last accessed date. Adding
\insertbiburl[..] to a citation style does work fine to get the urls
printed.
However, the *.bst styles only check for 'lastchecked
Hi,
I created some documents with MKII and started wondering why pdfinfo was showing
Creator:ConTeXt - 2013.06.07 17:34
Producer: pdfTeX-1.40.16
CreationDate: Sun May 3 11:18:14 2015
ModDate:ConTeXt - 2013.06.07 17:34
I first thought that I accidentally used TeX Live
On 05/03/2015 11:27 AM, Mojca Miklavec wrote:
[...]
(ModDate might also be wrong. In MkIV it's the same as CreationDate.
And in MkIV Creator uses one extra space at the beginning.)
Hi Mojca,
I see another mismatch,
http://www.pragma-ade.com/general/qrcs/setup-en.pdf has the following
ConTeXt
Hello,
\mainlanguage[cz]
\starttext
\date[d=1,m=3,y=2000][d,~,m,~,y]\par
\date[d=1,m=3,y=2000][d,~,mm,~,y]\par
\date[d=1,m=3,y=2000][d,~,month,~,y]\par
\stoptext
gives:
1 břez. 2000
1 03 2000
1 břez. 2000
Is there a way to get non-shortened month name, i.e. března instead
On 4/3/2015 1:44 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
\mainlanguage[cz]
\starttext
\date[d=1,m=3,y=2000][d,~,m,~,y]\par
\date[d=1,m=3,y=2000][d,~,mm,~,y]\par
\date[d=1,m=3,y=2000][d,~,month,~,y]\par
\stoptext
gives:
1 břez. 2000
1 03 2000
1 břez. 2000
;-)
Thanx Peter. I'm too not thought about solutions :-).
I was so focused to mined data from a CSV file, and I've not think much
about the appropriate algorithm.
I love attentive and thoughtful people (although often I'm not alone such)
Maybe I corrected in a subsequent e-mail properly.
One
Hi Pablo
Here is a quick solution. However, it not treat the incorrect input
data, ie it requires, however, correct input, otherwise it will collapse ...
Jaroslav Hajtmar
\usemodule[scancsv]
\def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator
\startlua
parsedate
used.
Sincerely
Jaroslav Hajtmar
\usemodule[scancsv]
\def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator
\startlua
local parsedate=thirddata.scancsv.ParseCSVLine('#1','#2');
local day=tonumber(parsedate[1]);
local month=tonumber(parsedate[2]);
local year
On Thu, Dec 18 2014, Jaroslav Hajtmar wrote:
if (year2000) then year=year+2000 end;
Hi,
What about Test;11/11/1999 ... ;-)
--
Peter
___
If your question is of interest to others as well, please add
defined in
the library, so that it can be successfully used.
Many thanks for your reply, Jaroslav.
This is exactly what I need.
Many thanks for your help,
Pablo
\usemodule[scancsv]
\def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator
\startlua
local parsedate
On 12/18/2014 01:37 PM, Peter Münster wrote:
On Thu, Dec 18 2014, Jaroslav Hajtmar wrote:
if (year2000) then year=year+2000 end;
Hi,
What about Test;11/11/1999 ... ;-)
Hi Peter,
all dates start from this year :-).
Pablo
--
http://www.ousia.tk
Hi Pablo.
Peter pointed out an error in my solution. Thanks Peter! His message but
pointed out that in fact is not the task as simple as it seems at first
glance. In fact, a lot depends on what target group for those you solve
a problem resp. whether e.g. date of birth of persons. What does
Dear list,
I have the following sample:
\usemodule[scancsv]
\unexpanded\def\lineaction{
\Name\ arrived on \Date\\
}
\setheader
\setsep{;}
\setfiletoscan{mail.csv}
\starttext
\filelineaction
\stoptext
that reads data from mail.csv:
Name;Date
Hi all,
I started using ConteXt a while ago, on the side line I still use LaTeX
(old habits die hard). When converting my CV to ConTeXt I have a weird
date problem. I hope one of you can point me in the right direction. I
copy the start of the document from vi (line 4 is the relevant line
Am 29.07.2014 10:02, schrieb A.J. Bonnema:
I started using ConteXt a while ago, on the side line I still use LaTeX
(old habits die hard). When converting my CV to ConTeXt I have a weird
date problem. I hope one of you can point me in the right direction. I
copy the start of the document from
On 07/29/2014 11:14 AM, Herbert Voss wrote:
Am 29.07.2014 10:02, schrieb A.J. Bonnema:
I started using ConteXt a while ago, on the side line I still use LaTeX
(old habits die hard). When converting my CV to ConTeXt I have a weird
date problem. I hope one of you can point me in the right
1 - 100 of 249 matches
Mail list logo